package com.example.designPatten.factory.abstractFactory;

/**
 * Created by com on 16/3/22.
 */
public class ClamPizza extends Pizza {

    PizzaIngredientFactory ingredientFactory;

    public ClamPizza(PizzaIngredientFactory ingredientFactory){
        this.ingredientFactory=ingredientFactory;
    }

    @Override
    public void prepare() {
        System.out.println("准备制作中:蛤蜊pizza");
        ingredientFactory.createDough();
        ingredientFactory.createSauce();
    }
}
